package com.bakar.util;

import java.util.Date;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class DBUtil {
	
	private static EntityManagerFactory emf = null;
	
	public static EntityManagerFactory getInstanceEntityManagerFactory(){
		if (emf == null){
			emf = Persistence
			.createEntityManagerFactory("transactions-optional");
		}
		return emf;
	}
	
	
	public static void main(String... args){
		//System.out.println(convertDateToString(new Date()));
	}

}
